﻿<div id="main-menu" ng-controller="MenuController">
    <div id="profile">
        <a href="/dashboard/profile">
            <img ng-src="{{currentAccount.AvatarUrl}}" alt="{{currentAccount.DisplayName}}" />
            <span>{{currentAccount.DisplayName}}</span>
        </a>
        <div style="clear: both;"></div>
    </div>
    <ul>
        <li ng-repeat="menuItem in menuData">
            <span class="text">{{menuItem.Text}}</span>
            <span ng-bind-html-unsafe="menuItem.Children | renderMenu" class="submenu"></span>
        </li>
    </ul>
</div>